package com.how2java.springboot.web;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.how2java.springboot.service.ICategory;
  
@Controller
public class CategoryController {
    @Autowired ICategory categoryBO;
     
    @RequestMapping("/listCategory")
    @ResponseBody
    public String listCategory() throws Exception {
    	categoryBO.addCategory();
        return "listCategory";
    }
     
}